package com.example.service;

import com.example.domain.Comment;
import com.example.domain.LeaveMessage;
import com.example.domain.vo.CommentVo;
import com.example.domain.vo.CultureProjectCategoryVo;
import com.example.domain.CultureProject;
import com.example.domain.vo.LeaveMessageVo;
import com.github.pagehelper.PageInfo;

import java.util.List;

public interface CultureCommunityService {

    PageInfo<CultureProject> queryCulture(CultureProject cultureProject, Integer currentPage, Integer pageSize);

    List<CultureProjectCategoryVo> queryCultureCategory();

    CultureProject queryCultureById(Long id);

    void submitLeaveMessage(LeaveMessage leaveMessage);

    PageInfo<LeaveMessageVo> queryLeaveMessage(LeaveMessageVo leaveMessageVo, Integer currentPage, Integer pageSize);

    void addComments(Comment comment);

    PageInfo<CommentVo> getCommentsByCultureId(Long cultureId, Integer currentPage, Integer pageSize);

    void removeComments(Long commentId);

    void updateLike(Long commentId, Long likes);

    void updateTread(Long commentId, Long treader);

    CommentVo getCommentsMaxLikes(Long cultureId);
}
